package com.jintian.hnsj_metting.util

import com.hikvision.smarteyes.utils.SPUtils
import com.jintian.hnsj_metting.App

class DeviceInfo {

    companion object {
        const val mToken = "b622c0ba-1952-8831-62d5-67d3412791ab"

        fun setSN(sn: String) {
            val sp = SPUtils(App.instance)
            sp.putValue("dev_sn", sn)
        }

        fun getSN(): String? {
            val sp = SPUtils(App.instance)
            return sp.getString("dev_sn")
        }

        fun  setOtherIds(ids:String){
            val sp = SPUtils(App.instance)
            sp.putValue("other_ids", ids)
        }

        fun getOtherIds(): String? {
            val sp = SPUtils(App.instance)
            return sp.getString("other_ids")
        }
    }
}